(dash-w-face (propertize "-" 'face 'which-key-key-face))
(status-left (propertize (format "%s/%s" (1+ i) n-pages)
'face 'font-lock-comment-face))
- (status-top (propertize (format "(%s of %s)" (1+ i) n-pages)
- 'face 'font-lock-comment-face))
+ (status-top (when (< 1 n-pages)
+ (propertize (format "(%s of %s)" (1+ i) n-pages)
+ 'face 'font-lock-comment-face)))
(first-col-width (+ 2 (max (string-width prefix-w-face)
(string-width status-left))))
(prefix-left (s-pad-right first-col-width " " prefix-w-face))
first (concat prefix-left (car lines) "\n" (s-repeat first-col-width " "))
new-end (concat "\n" (s-repeat first-col-width " "))
page (concat first (mapconcat #'identity (cdr lines) new-end)))))
- ((and (< 1 n-pages)
- (eq which-key-show-prefix 'top))
- (setq page (concat prefix-w-face dash-w-face " " status-top "\n" page)))
((eq which-key-show-prefix 'top)
- (setq page (concat prefix-w-face dash-w-face " \n" page)))
- ((and (< 1 n-pages)
- (eq which-key-show-prefix 'echo))
- (let (message-log-max) (message "%s" (concat prefix-w-face dash-w-face " " status-top))))
+ (setq page (concat prefix-w-face dash-w-face " " status-top "\n" page)))
((eq which-key-show-prefix 'echo)
- (let (message-log-max) (message "%s" (concat prefix-w-face dash-w-face " ")))))
+ (let (message-log-max)
+ (message "%s" (concat prefix-w-face dash-w-face " " status-top)))))
(which-key--lighter-status n-shown n-tot)
(if (eq which-key-popup-type 'minibuffer)
(let (message-log-max) (message "%s" page))